package cn.lycode.system.domain.entity;

import cn.lycode.common.core.domain.BaseEntity;
import cn.lycode.system.domain.vo.SysPostVO;
import lombok.Data;

import java.io.Serializable;

/**
 * 岗位信息表
 *
 * @since 2024-09-03
 * @author lyCode
 */
@Data

public class SysPost extends BaseEntity implements Serializable{
    private static final long serialVersionUID = 1L;

    private Long id; //岗位ID
    private String postCode; //岗位编码
    private String postName; //岗位名称
    private Long sort; //显示顺序

    public SysPostVO buildVO() {
        SysPostVO vo = new SysPostVO();
        vo.setPostId(this.getId());
        vo.setPostCode(this.getPostCode());
        vo.setPostName(this.getPostName());
        vo.setSort(this.getSort());
        vo.setIsDisable(this.getIsDisable());
        vo.setRemark(this.getRemark());
        return vo;
    }
}